
<!-- 公共资源的导入 -->
<?php if(!has_templet()){?>
<link rel="stylesheet" type="text/css" href="/shop/templates/template1/Css/common.css" />
<link rel="stylesheet" type="text/css" href="/shop/templates/template1/Css/app.css" />


<link rel="stylesheet" type="text/css" href="/shop/templates/template1/Css/main.css" />
<!-- <script src="//unslider.com/unslider.js"></script> -->
 <style type="text/css">

._jmyp .ecope_switchable .sc_container ul{
    width: 100%;
    min-height: 450px;
}

.banner{
    position: relative;
    min-height: 450px;
    overflow: auto;
}

.cate_look:hover{
    color:#fff;
}

</style>
<?php }?>

<?php
if(get_template_type() == 'header'){
?>
<div class="header header_wide_lv2">
<!--header top-->
<div class="header_top">
    <div class="header_top_box">
        <!--login-->
        <ul class="header_top_left" id="headerTopLeft">
            <li>欢迎来到<?php echo $GLOBALS['setting_config']['site_name']?>！</li>
            <?php
                if(isset($_SESSION['member_id'])){
            ?>
            <li style='margin-right: 5px;'>
                <a href="/shop/?act=member&op=home">[个人中心]</a>
            </li>
            <li>
                <a href="javascript:;" id='logout'>[退出]</a>
            </li>
            <script>
                $('#logout').click(function(event) {
                    $.get('/shop/index.php?act=login&op=logout',function(){
                        location.reload();
                    })
                });
            </script>
            <?php
                }else{
            ?>
            <li><a href="/shop/?act=login" rel="nofollow">请登录</a></li>
            <li><a href="/shop/?act=login&op=register" rel="nofollow">快速注册</a></li>
            <?php
                }
            ?>

        </ul>
        <!--login end-->
        <!--city choose-->
        <div class="default-city fl">
                <span class="add-city-icons">
                    送至<span class="add-default-city">&nbsp;</span>
                    <s class="icon_arrow_down"></s>
                    <i class="user-local-icon"></i>
                </span>
            <div class="header-city-list"></div>
        </div>
        <!--city choose end-->
        <!--right list-->
        <ul class="header_top_right" id="headerTopRight">
        	<li class="item_ijumei">
        		<a href="index.php?act=seller_center">商家管理</a>
        		<div class="sub_nav" style='top:26px;'>
        			<ul>
        				<li> <a style='text-align:center;text-indent:0' href="/shop/index.php?act=show_joinin&op=index">商家申请</a></li>
        				<li>
        					 <a style='text-align:center;text-indent:0;' href="index.php?act=seller_center">商家登录</a>
        				</li>
        			</ul>
        		</div>
        	</li>
        	<script>
        			$(function(){
        				$('.item_ijumei:first').hover(function(){
        					$(this).addClass('hover');
        					$(this).find('.sub_nav').show();
        				},function(){
        					$(this).removeClass('hover');
        					$(this).find('.sub_nav').hide();
        				});
        			})
        	</script>

            <li class="item_mobile"><a href="/wap/" rel="nofollow"><span class="line"></span><s class="icon_mobile"></s>手机<?php echo $GLOBALS['setting_config']['site_name']?></a></li>

            <li id="see_more">
                <span class="line"></span>
                <!--查看更多 (广告位) star-->
                <style>
                    #look_all_box:hover .class_list_wrap{
                        display: block;
                    }
                    ._jmyp .header_top_box .pop_list a{
                        background: none !important;
                        text-indent: 0 !important;
                    }
                    ._jmyp .header_top_box .pop_item_wrap{
                    }
                    ._jmyp .header_top_box .class_list_wrap{
                        height: auto;
                    }
                </style>
                <script>
                    $(function(){

                        $('#look_all_box').mouseenter(function(){
                            $('.pop_item_wrap').height($('.pop_list_wrap').height())
                        })

                        $('.pop_list a').hover(function(){

                            var _this = $(this).parent()
                            _this.addClass('current').siblings().removeClass('current');
                            var index = _this.index();
                            console.log($('.pop_item_wrap .pop_item').eq(index))
                            $('.pop_item_wrap .pop_item').eq(index).addClass('current').siblings().removeClass('current')
                        });

                    });
                </script>

                <div class="look_all_box" id="look_all_box">
                    <a class="look_all"><span>查看分类</span>
                        <b class="grid png"></b>
                        <b class="close png"></b>
                    </a>
                    <div class="class_list_wrap clearfix">
                        <div class="pop_item_wrap">
                            <?php
                                $m = Model('goods_class');
                                $clz = $m->getGoodsClassListByParentId(0);
                                foreach($clz as $k => $c1){
                            ?>
                            <div class="pop_item clearfix <?php if($k == 0) echo 'current';?>">
                                    <?php
                                        $clz2 = $m->getGoodsClassListByParentId($c1['gc_id']);
                                        foreach($clz2 as $c2){
                                    ?>
                                    <dl>
                                        <dt><?php echo $c2['gc_name']?></dt>

                                        <dd>
                                        <?php
                                            $clz3 = $m->getGoodsClassListByParentId($c2['gc_id']);
                                            foreach($clz3 as $c3){
                                        ?>
                                        <a href="<?php echo urlShop('search', 'index', array('cate_id' => $c3['gc_id'], 'keyword' => $_GET['keyword']));?>" target="_blank"><?php echo $c3['gc_name']?></a>
                                        <?php
                                            }

                                        ?>
                                        </dd>
                                    </dl>
                                    <?php
                                        }
                                    ?>
                            </div>
                            <?php }?>
                        </div>


                        <div class="pop_list_wrap">

                            <ul class="pop_list">
                            <?php
                                foreach($clz as $k => $c){
                            ?>
                            <li class="t<?php echo ++$k; if($k == 1){ echo ' current';}?>">
                                <a href="<?php echo urlShop('search', 'index', array('cate_id' => $c['gc_id'], 'keyword' => $_GET['keyword']));?>" target="_blank"><?php echo $c['gc_name']?></a><b></b>
                            </li>
                            <?php
                                }
                            ?>

                            </ul>

                        </div>
                    </div>
                </div>                                                    <!-- 查看分类(广告位) end  -->
            </li>

        </ul>
        <!--right list end-->
    </div>
</div>
<div class="ibar" id="iBar" style="z-index: 9990; right: 0px; position: fixed; top: 0px; display: block;">
    <div class="ibar_main_panel" style="left: 0px;">
        <ul class="ibar_mp_center">
            <?php if ($_SESSION['is_login']) {?>
            <li class="mpbtn_login"><a href="#"><s></s>登录</a>
            <?php } else {?>
            <li class="mpbtn_login"><a href="#"><s></s>登录</a>
            </li>
            <?php } ?>
            <li class="mpbtn_cart" style="left: 0px;"><a href="#" data-plugin="iBarCart"><s></s><span class="text">购物车</span><span class="cart_num">0</span></a>
            </li>

            <li class="mpbtn_histroy">
                <a href="#" data-plugin="iBarHistroy" title="点击查看足迹"><s></s>我看过的</a>
            </li>

        </ul>
        <?php
            //首页品牌广告位_1
            $model_adv = Model('adv');
            $position_brand = array();
            $adv_brand_position = Model()->table('adv_position')->where(array('ap_name'=>array('like','%二维码%')))->select();

            $ap_id = $adv_brand_position[0]['ap_id'];
            $condition = array();
            $condition['ap_id'] = $ap_id;
            $adv_list_1 = Model()->table('adv')->where($condition)->select();
            $adv_content = unserialize($adv_list_1[0]['adv_content']);
            // print_r($adv_list_1);exit;
        ?>
        <ul class="ibar_mp_bottom">
             <li class="mpbtn_qrcode"><a href="#"><s></s></a>
                <div class="mp_qrcode" style="display: none;z-index:9999999;">
                    <img src="/data/upload/shop/adv/<?php echo $adv_content['adv_pic'];?>" width="148" height="175"><s class="icon_arrow_white"></s>
                </div>
            </li>
            <li class="mpbtn_support">
                <a href="http://shang.qq.com/email/stop/email_stop.html?qq=2645119508&sig=b466a68ac911ddc8a772aa8763b703c511434c27e8609e62&tttt=1" data-plugin="iBarFaq"><s></s>客服中心</a>

            </li>
            <li class="mpbtn_gotop" id="gotop" style="visibility: visible;"><a href="#" class="btn_gotop"><s></s>返回顶部</a>
                <div class="mp_tooltip" style="visibility: hidden;">返回顶部<s class="icon_arrow_right_black"></s>
                </div>
            </li>
            <style>
                .becomebig{
                    transform:scale(1.3);
                    transition:All 0.4s ease-in-out;
                    z-index: 999;
                }
            </style>
            <script>
                $(function(){
                    $('.mpbtn_qrcode').hover(function(){
                        $('.mp_qrcode').show();
                    },function(){
                        $('.mp_qrcode').hide();
                    })

                    $('.mpbtn_histroy,.mpbtn_cart').click(function(){
                        $('#iBarHistroy,#iBarCart').hide();
                        $('#iBar').find('.current').removeClass('current');
                        if($(this).hasClass('mpbtn_histroy')){
                            $('#iBarHistroy').show();
                        }
                        else{
                            $('#iBarCart').show();
                        }
                        if($('.ibar_sub_panel').css('display') == 'none'){
                            $(this).find('a:first').addClass('current');
                            $('.ibar_sub_panel').css({left:0}).show().animate({
                                left : -287
                            });
                        }

                        return false;

                    });

                    $(document).on('click','.ibar_closebtn',function(){
                        $('#iBar').find('.current').removeClass('current');
                        if($(this).parent().hasClass('ibar_login_box')){
                            $('.ibar_login_box').hide();
                        }
                        else{
                            $('.ibar_sub_panel').animate({
                                left : 0
                            },function(){
                                $('.ibar_sub_panel').hide();
                            })
                        }


                    });

                    var login_timer = null;
                    $('.mpbtn_login').hover(function(event) {
                        var _this = $(this);
                        login_timer = setTimeout(function(){
                            $('.ibar_login_box').css({
                                top : _this.offset().top
                            }).show();
                        },250)

                    },function(){
                        login_timer = setTimeout(function(){
                            $('.ibar_login_box').hide();
                        },250);
                    });

                    $('.ibar_login_box').hover(function(){
                        clearTimeout(login_timer);
                    },function(){
                        login_timer = setTimeout(function(){
                            $('.ibar_login_box').hide();
                        },250);
                    });

                    $('.mpbtn_gotop,.mpbtn_histroy,.mpbtn_support').hover(function(){
                        $(this).find('.mp_tooltip').css('visibility','visible');
                    },function(){
                        $(this).find('.mp_tooltip').css('visibility','hidden');
                    });


                    function getRect( elements ){
                    var rect = elements.getBoundingClientRect();
                    var clientTop = document.documentElement.clientTop;
                    var clientLeft = document.documentElement.clientLeft;
                    return { // 兼容ie多出的两个px
                    top : rect.top - clientTop, // 距离顶部的位置
                    bottom : rect.bottom - clientTop, // 距离顶部加上元素本身的高度就等于bottom的位置
                    left : rect.left - clientLeft, // 距离左边的位置
                    right : rect.right - clientLeft // 距离右边的位置就是 距离左边的位置加上元素本身的宽度
                    };
                    };
                    window.add_to_cart_animate = function(obj,src,callback){
                        var pos = getRect(obj);
                        var target_pos =  getRect($('.mpbtn_cart s:first')[0]);

                        var img = $('<img>').attr({
                            'src' : src
                        }).css({
                            position : 'fixed',
                            top : pos.top,
                            left : pos.left + 25,
                            border : '2px solid #fb2f72',
                            borderRadius : '35px',
                            width : 35,
                            height : 35,
                            zIndex : 998,
                            background : '#fff'
                        }).appendTo('body');
                        img.animate({
                            top : '-=50px'
                        },'fast',function(){
                            img.animate({
                                top : target_pos.top - 100,
                                left : target_pos.left - 50
                            },function(){
                                img.animate({
                                    left : '+=50',
                                    top : target_pos.top - 15,
                                    width : 15,
                                    height : 15,
                                    borderRadius : '15px',
                                },'fast');
                                $('.mpbtn_cart s').addClass('becomebig');
                                    setTimeout(function(){
                                    $('.mpbtn_cart s').removeClass('becomebig');
                                    img.remove();
                                    $('<i>').css({
                                        width : '15px',
                                        height : '15px',
                                        borderRadius : '15px',
                                        position : 'fixed',
                                        zIndex : '1000',
                                        left : target_pos.left + 5,
                                        top : target_pos.top - 10,
                                        background : '#fb2f72',
                                        color : '#fff',
                                        'line-height' : '12px',
                                        'text-align' : 'center'
                                    }).html(1).appendTo('body').animate({
                                        'top' : '-=10'
                                    }).fadeOut();
                                    load_side_cart();
                                    load_cart_index();
                                },400);
                            })
                        });
                    }

                    $(document).on('click','.imp-addCart',function(event) {

                        // console.log(pos);
                        var src = $(this).closest('.imp_item').find('.pic img').attr('src');
                        add_to_cart_animate(this,src)
                        addcart($(this).attr('key'),1)
                    });



                })
            </script>
        </ul>
    </div>
    <style>
        ._jmyp .ibar_cart_handler{
            position: relative !important;
            top: 0 !important;
            text-align: center;
        }
    </style>
    <div class="ibar_login_box  status_logout" style="top: 97px; display: none;">
        <?php if(!$_SESSION['member_id']){?>
        <div class="avatar_box">
            <p class="avatar_imgbox">
<!--                <img src="http://p0.jmstatic.com/assets/avatar_nonesign.jpg" alt="头像" width="62" height="62">-->
            </p>
            <p>你好！请&nbsp;<a href="/shop/index.php?act=login">登录</a>&nbsp;|&nbsp;<a href="/shop/index.php?act=login&op=register">注册</a>
            </p>
        </div>
        <?php }else{?>

        <div class="avatar_box"><p class="avatar_imgbox"><img src="/data/upload/shop/avatar/avatar_<?php echo $_SESSION['member_id']?>.jpg" alt="头像" width="62" height="62"></p><ul class="user_info"><li style='text-align:center'>用户名：<?php echo $_SESSION['member_name']?></li><li></li></ul>
        </div>

        <?php }?>
        <div class="login_btnbox"><a href="/shop/index.php?act=member_order" class="login_order" target="_blank">我的订单</a><a href="/shop/index.php?act=member_favorites&op=fglist" class="login_favorite" target="_blank">我的收藏</a>
        </div><s class="icon_arrow_white"></s>
        <a href="javascript:;" class="ibar_closebtn" title="关闭"></a>
    </div>
    <div class="ibar_sub_panel">
        <a href="javascript:;" class="ibar_closebtn" title="关闭"></a><span class="ibar_loading_text">正在为您努力加载数据！</span>
        <div class="ibar-moudle-wrap ibar_plugin" id="iBarHistroy" style="display: block;">
        </div>
        <script>
            $('#iBarHistroy').load('/shop/templates/template1/template1.foot.php');
        </script>
        <div class="ibar_plugin ibar_cart_content" id="iBarCart">
        </div>
        <script>
            function load_side_cart(){
                $('#iBarCart').load('/shop/templates/template1/template1.cart.php',function(){
                    $('.cart_num').html($('.ibar_cart_total_quantity').html())
                });
            }
            load_side_cart();

        </script>




    </div>
<!--    <div class="ibar_tips_box">-->
<!--        <div class="tips_cash_box">-->
<!--            <div class="newuser_tips_cash">-->
<!--                <h3>领取新人百元现金券</h3>-->
<!--                <p>今天下单尽享优惠</p><a class="coupon_btn" href="http://passport.beeasy.com.cn/i/account/signup" target="_blank">注册领取</a>-->
<!--            </div><s class="icon_arrow_white"></s>-->
<!--            <a href="javascript:;" class="ibar_closebtn" title="关闭"></a>-->
<!--        </div>-->
<!--        <div class="tips_customer_box">-->
<!--            <div class="olduser_cash">-->
<!--                <h3>这里查看百元现金券</h3>-->
<!--                <p>有效期24小时</p>-->
<!--            </div><s class="icon_arrow_white"></s>-->
<!--            <a href="javascript:;" class="ibar_closebtn" title="关闭"></a>-->
<!--        </div>-->
<!--    </div>-->
</div>
<!--header top end-->
<!--header middle-->
<div class="header_center">
    <h1 class="logo">
        <a href="<?php echo SHOP_SITE_URL;?>"  id="home"  style="text-indent:0;background:none;">
            <img width=165 height=85 src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_COMMON.DS.$output['setting_config']['site_logo']; ?>" alt="">
        </a>
    </h1>

        <div class="header_searchbox header_out_searchbox">
        <form action="<?php echo SHOP_SITE_URL;?>" method="get" pos="top"  onsubmit="return mall_search_validate(this)">
            <input type="hidden" value="search" id="search_act" name="act">
            <input name="keyword" type="text" class="header_search_input" id="header_search_input" default_val="" autocomplete="off" x-webkit-speech="" x-webkit-grammar="builtin:search" lang="zh" value="<?php echo $_GET['keyword'];?>" />
            <input name="from" type="hidden" />
            <input name="cat" type="hidden" />
            <button type="submit" class="header_search_btn" >搜索</button>
        </form>
        <div class="search_result_pop_a" id="top_out_search_pop_div"></div>

        <ul class="hot_word">
            <?php
                $config = $config or $config = Model('setting')->getListSetting();
                $keys = explode(',',$config['hot_search']);
                foreach($keys as $count => $key){
            ?>
            <li><a href="/shop/?act=search&keyword=<?php echo $key;?>&from=&cat=" target="_blank"><?php echo $key;?></a>
                <?php if($count < count($keys) - 1){?>
                <s class="line"></s>
                <?php }?>
            </li>
            <?php
                }
            ?>
        </ul>
    </div>

    <div id="cart_box" class="cart_box my-cart">
        <a id="cart" class="cart_link" href="/shop/?act=cart" rel="nofollow">
            <img src="/shop/templates/template1/Picture/cart.gif" width="28" height="28" class="cart_gif" />
            <span class="text">去购物车结算</span>
            <span class="num" style=''>0</span>
            <s class="icon_arrow_right"></s>
        </a>

        <div class="cart_content" id="cart_content">

        </div>
        <script>
            function load_cart_index(){
                $('#cart_content').load('/shop/templates/template1/template1.cart_index.php',function(){
                    $('#cart .num').html($('.num_all').html())
                });
            }
            $('#cart_box').hover(function(){
                $('._cart_content').show();
            },function(){
                $('._cart_content').hide();
            });
            load_cart_index();


        </script>
    </div>
</div>
<!--header middle end-->
<!--header bottom-->
<div class="header_bottom">
    <div class="channel_nav_box">
        <div class="channel_nav_list_wrap">

<style>
    #first_nav{
        position: relative;
    }

    #first_nav div{
        top: 40px;
        left: 0;
        width: 100%;
        display: none;
    }
    #first_nav div a{
        display: block;
        text-align: center;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #first_nav div a:hover{
        background: url(/shop/templates/template1/Images/wl_bg.jpg);
    }
</style>
<ul class="channel_nav_list">
    <?php

        list($navs) = get_nav();
    ?>
    <li class='current' id='first_nav'>
        <!-- <a href="/" class="home "><?php echo $index_name;?></a> -->

        <div id='down'>
            <?php
                $places = get_places();
                foreach($places as $place){
            ?>
            <a href="/shop/index.php?act=index&op=show_place&place_id=<?php echo $place['id']?>"><?php echo $place['name']?></a>
            <?php
                }
            ?>
        </div>

        <script>
            $('#first_nav').hover(function(){
                $('#first_nav div').width($('#first_nav').width()).show();
            },function(){
                $('#first_nav div').hide();
            });
        </script>
    </li>

    <?php
        foreach($navs as $nav){
    ?>
    <li>
        <a href="<?php echo $nav['nav_url']?>"><?php echo $nav['nav_title']?></a>
    </li>
    <?php
        }
    ?>
    </ul>


            <div class="header_pop_subAtc box-shadow" id="header_pop_subAct"></div>
            <!--导航icon 动画-->
            <ul id="icon_wrap" class="icon_Wrap">
                <li><div class="divlist divlist01">
                                <a href="javascript:;"><span class=""></span> <b>品牌防伪码</b></a></div></li><li><div class="divlist divlist02">
                                <a href="javascript:;"><span class="th"></span> <b>美妆30天无理由退货</b></a></div></li><li><div class="divlist divlist03">
                                <a href="javascript:;"><span class="by"></span> <b>美妆满2件或299包邮</b></a></div></li>
                            </ul>
            <!--导航icon 动画 end-->
        </div>
    </div>
</div>
<!--header bottom end-->
</div>



<?php }?>
<!-- 子系统内容区域代码 start -->
<!--首屏350px高轮播广告位 && 首页新用户大弹窗自定义广告位 -->

<!-- <div class='site_body'><div id='site_switch' class='ecope_switchable site_switch'><div class='sc_container'><ul><li style="background: url(/shop/templates/template1/Images/56616_1920_350_002-web.jpg) 50% 0px no-repeat;"><a href="http://hd.jumeiglobal.com/act/4-1-22026-plt_mianmotuanht_151204.html?from=all_null_index_top_banner_null&lo=3477&mat=56616" target="_blank"></a> </li><li style="background: url(/shop/templates/template1/Images/56730_1920_350_002-web.jpg) 50% 0px no-repeat;"><a href="http://hd.beeasy.com.cn/act/28-1704-22660-20151205_cuimian_app.html?from=all_null_index_top_banner_null&lo=3477&mat=56730" target="_blank"></a> </li><li style="background: url(/shop/templates/template1/Images/56642_1920_350_003-web.jpg) 50% 0px no-repeat;"><a href="http://hd.beeasy.com.cn/act/4-1-22452-ppt_guohuo_151205.html?from=all_null_index_top_banner_null&lo=3477&mat=56642" target="_blank"></a> </li></ul></div></div></div> -->
<?php if(get_template_type() == 'index'){?>
<div class='banner_wrapper' style='height:450px'>
<div class='banner'>
<?php
    $web = Model('web')->getby_web_page('index_pic');
    echo $web['web_html'];
?>
</div>
</div>

<script>
    // $('.banner').unslider({
    // });
</script>

<div class="home_top_tab" id="home_top_tab">
    <div class="tab_wrapper">
        <div class="tab_content">
            <div class="tab_box">
            	<div class="home_top_ad">
            		<div class="home_ad_list clearfix">
                    <?php if($output['adv_list']){
                            foreach ($output['adv_list'] as $key => $value) {
                                $adv_content = unserialize($value['adv_content']);
                                $adv_pic = $adv_content['adv_pic'];
                                $adv_url = $adv_content['adv_pic_url'];
                    ?>
            			<a href="<?php echo $adv_url;?>" target="_blank"><img src="/data/upload/shop/adv/<?php echo $adv_pic;?>" border="0" /></a>
                    <?php }}?>
                    </div>
            	</div>
            </div>
        </div>
    </div>
</div>
<style>
    #today_new_ul .img_box img{
        width: 350px;
        height: 350px;
    }
    ._jmyp .floor-head{
        background:none;
    }
    ._jmyp .floor_head{
        background:none;
    }
    ._jmyp .today_new_deal .floor_head{
        text-indent:0;
    }
</style>
<!-- 商品列表 -->
<div class="layout_1090 today_new_deal">
    <div class="today_deal_tit">
        <h2 class="floor_head" id="today_deals"><span style="background: #000;color: #fff;font-size: 20px;padding: 5px 15px;text-indent:0;"><?php echo "商品推荐";?></span><span style="color:#000;font-size: 18px;padding: 5px 15px;text-indent:0;"><?php echo "RECOMMEND";?></span></h2>
        <!-- <p class="today_deals_tip"></p> -->
    </div>

    <div class="today_new_productlist">
        <ul class="today_new_ul clearfix" id="today_new_ul">
        <?php
            if($output['goods_list']){
                foreach ($output['goods_list'] as $key => $value) {

        ?>
            <li class="newdeal_box" pid="1308285" bid="296" cid="18" pos="1" data-hashid="ht151207p1308285t2">
                <div class="img_box">
                <a class="img_box_href" target="_blank" href="<?php echo urlShop('goods', 'index',array('goods_id'=>$value['goods_id']));?>">
                <img alt="<?php echo $value['goods_name'];?>" src="<?php echo thumb($value, 240);?>" class="img_400 all_cart_img">
<!--                <div class="commit_new" style="display: none;"><div class="commit_new_box commit_new_global">海外直采 海外价格 闪电发货</div></div>-->
                </a>
                <div class="add_cart_box" style="display: none;"><a href="<?php echo urlShop('goods', 'index',array('goods_id'=>$value['goods_id']));?>" class="cate_look" target="_blank">去看看</a>
                </div>
                </div>
                <a target="_blank" href="<?php echo urlShop('goods', 'index',array('goods_id'=>$value['goods_id']));?>"><div class="today_new_detail"><p class="title"><?php echo $value['goods_name'];?></p>
                <div class="intro_box" style="position:relative;"><div class="price_box"><em>¥</em><span class="pnum"><?php echo $value['goods_price'];?></span><div class="price_icon_wrap">
                <div class="icon_p">
                <?php if($value['goods_freight']==0){?>
                <span class="y_icon">包邮</span>
                <?php }?>
                </div>
                <span class="mnum">¥<?php echo $value['goods_marketprice'];?></span></div></div>
                <div style="position:absolute;bottom:15px;left:150px;">
                    <span class="_ext" style="margin-right:5px;"><?php if($value['store_info']['is_own_shop']==1){ echo "自营";}?></span>
                    <span class="_ext"><?php if($value['open_tax']==1){ echo "保税";}?></span>
                </div>
                <div class="numtimer_box global_numtimer_box"><div class="num_box">销量：<span class="buy_num"><?php echo $value['goods_salenum'];?></span></div></div></div></div>
                </a>
            </li>
        <?php }}?>
        </ul>
    </div>
</div>
<script>
    $(function(){
        $('#today_new_ul li').hover(function(){
            $(this).find('.add_cart_box').show();
            $(this).find('.commit_new').show();
        },function(){
            $(this).find('.add_cart_box').hide();
            $(this).find('.commit_new').hide();
        })
    })
</script>

<!-- 品牌 -->
<div class="layout_1090" id="brands_head">
        <!--美妆品牌团-->
        <style>

        </style>
<?php
    if($output['adv_list_1']){
        foreach ($output['adv_list_1'] as $key => $value) {
        $ap_intro = $output['adv_brand'][$key]['ap_intro'];
        $arr_intro = explode('|',$ap_intro);
        // print_r($arr_intro);
?>
    <div class="cosmetics-floor brands-floor" id="cosmetics-floor">
        <h2 class="floor-head"><span style="background: #000;color: #fff;font-size: 20px;padding: 5px 15px;"><?php echo $arr_intro[0];?></span><span style="color:#000;font-size: 18px;padding: 5px 15px;"><?php echo $arr_intro[1];?></span><!-- <a href="http://beauty.beeasy.com.cn/?from=newhone_beauty" target="_blank" class="floor-view-more">查看更多&gt;&gt;</a> --></h2>
        <div class="bf-content clearfix">
            <div class="fl">
            <?php
                if($value[0]['ap_id'] != $key){
                    continue;
                }else{
                    $adv_content = unserialize($value[0]['adv_content']);
                    $pic = $adv_content['adv_pic'];
                    $url = $adv_content['adv_pic_url'];
            ?>
                <a href="<?php echo $url;?>" target="_blank"><img original="/data/upload/shop/adv/<?php echo $pic;?>" src="/data/upload/shop/adv/<?php echo $pic;?>" width="258" height="425"></a>
                <?php }?>
            </div>
            <div class="fr">
                <div class="bf-ul-content">
                <?php
                    foreach ($value as $k1 => $v1) {
                        if($k1<1){
                            continue;
                        }
                        $content = unserialize($v1['adv_content']);
                        $pic1 = $content['adv_pic'];
                        $url1 = $content['adv_pic_url'];
                ?>
                    <li>
                    <a href="<?php echo $url1;?>" target="_blank">
                        <img original="" width="380" height="205" src="/data/upload/shop/adv/<?php echo $pic1;?>">
                        <!-- <div class="bf-item-info">
                            <p class="tit">口腔护理团</p>
                            <p class="subtit">从“齿”无所“味”惧</p>
                            <p class="sale">满<em>49</em>减<em>10</em>，满<em>99</em>减<em>30</em></p>
                            <p class="time_left home_timer" end_time="247881">02<em>天</em>19<em>时</em>19<em>分</em>58<em>秒</em></p>
                        </div> -->
                    </a>
                </li>
                <?php }?>
                </div>
            </div>
        </div>
    </div>
    <?php
        }}
    ?>
</div>
<?php }?>



<!-- <div id="footer" class="footer">
<div id="footer_textarea">
    <textarea style="display: none">
        <div class="footer_top">
            <div class="footer_con footer_credit" id="footer_credit">
                <a  href="http://hd.beeasy.com.cn/act/6-478-2232-guarantee.html?from=footer" class="foot_link mostmall" target="_blank" rel="nofollow">
                    <span class="first corn"></span><span class="con"><b>值得信赖美妆电商</b></span>四千万用户信赖
                </a>
                <a href="http://hd.beeasy.com.cn/act/6-478-2232-guarantee.html?from=footer#jumei_ipo" class="foot_link quality" target="_blank"  rel="nofollow">
                    <span class="corn"></span><span class="con"><b>成功在美上市</b></span>股票代码NYSE:JMEI
                </a>
                <a href="http://hd.beeasy.com.cn/act/6-478-2232-guarantee.html?from=footer#brand_con" class="foot_link back" rel="nofollow" target="_blank">
                    <span class="corn"></span><span class="con"><b>品牌防伪码</b></span>支持品牌官网验真
                </a>
                <a href="http://hd.beeasy.com.cn/act/6-478-2232-guarantee.html?from=footer#unconditionally_backtrack" class="foot_link depot" target="_blank" rel="nofollow">
                    <span class="corn"></span><span class="con"><b>30天无理由退货</b></span>只要不满意无理由退货
                </a>
                <a href="http://hd.beeasy.com.cn/act/6-478-2232-guarantee.html?from=footer#user_confide" class="foot_link consignment" target="_blank" rel="nofollow">
                    <span class="corn"></span><span class="con"><b>百万用户口碑</b></span>帮你只选对的,不选贵的
                </a>
                <a href="http://hd.beeasy.com.cn/act/6-478-2232-guarantee.html?from=footer#bold_consignment" class="foot_link packaging" target="_blank" rel="nofollow">
                    <span class="corn"></span><span class="con"><b>订单闪电发货</b></span>1.5小时订单急速出库
                </a>
                <a href="http://hd.beeasy.com.cn/act/6-478-2232-guarantee.html?from=footer#star_commend" class="foot_link confide" target="_blank" rel="nofollow">
                    <span class="corn"></span><span class="con"><b>大牌明星热荐</b></span>打造精致明星脸
                </a>
            </div>
        </div>
        <div class="footer_top_sen">
            <div class="footer_con footer_links" id="footer_links">
                <ul class="linksa">
                    <li class="links">服务保障</li>
                    <li><a href="http://hd.beeasy.com.cn/act/6-478-2232-guarantee.html?from=footer&site=bj#brand_con" target="_blank" rel="nofollow">品牌真品防伪码</a></li>
                    <li><a href="http://hd.beeasy.com.cn/act/6-478-2232-guarantee.html?from=footer" target="_blank" rel="nofollow">100%正品保证</a></li>
                    <li><a href="http://hd.beeasy.com.cn/act/6-478-2232-guarantee.html?from=footer#unconditionally_backtrack" target="_blank" rel="nofollow">30天无条件退货</a></li>
                    <li><a href="http://www.beeasy.com.cn/help/faq?from=footer" target="_blank" rel="nofollow">7×24小时客服服务</a></li>
                    <li><span class="footer_zcemail">总裁邮箱ceo@beeasy.com.cn</span></li>
                </ul>
                <ul class="linksb">
                    <li class="links">使用帮助</li>
                    <li><a href="http://www.beeasy.com.cn/help/guidebook" target="_blank" rel="nofollow">新手指南</a></li>
                    <li><a href="http://www.beeasy.com.cn/help/faq" target="_blank" rel="nofollow">常见问题</a></li>
                    <li><a href="http://www.beeasy.com.cn/help/main" target="_blank" rel="nofollow">帮助中心</a></li>
                    <li><a href="http://www.beeasy.com.cn/i/help/user_terms" target="_blank" rel="nofollow">用户协议</a></li>
                    <li><a href="http://www.beeasy.com.cn/activity_qiye_tuangou.html" target="_blank" rel="nofollow">企业用户团购</a></li>
                </ul>
                <ul class="linksc">
                    <li class="links">支付方式</li>
                    <li><a href="http://www.beeasy.com.cn/help/pay_cod" target="_blank" rel="nofollow">货到付款</a></li>
                    <li><a href="http://www.beeasy.com.cn/help/pay_online" target="_blank" rel="nofollow">在线支付</a></li>
                    <li><a href="http://www.beeasy.com.cn/help/pay_balance" target="_blank" rel="nofollow">余额支付</a></li>
                    <li><a href="http://www.beeasy.com.cn/help/pay_promocards?from=footer" target="_blank" rel="nofollow">现金券支付</a></li>
                </ul>

                <ul class="linksd">
                    <li class="links">配送方式</li>
                    <li><a href="http://www.beeasy.com.cn/help/two_for_freeshipping?from=footer" target="_blank" rel="nofollow">包邮政策</a></li>
                    <li><a href="http://www.beeasy.com.cn/help/delivery_state?from=footer" target="_blank" rel="nofollow">配送说明</a></li>
                    <li><a href="http://www.beeasy.com.cn/help/delivery_fee?from=footer" target="_blank" rel="nofollow">运费说明</a></li>
                    <li><a href="http://www.beeasy.com.cn/help/check_goods?from=footer" target="_blank" rel="nofollow">验货签收</a></li>
                </ul>

                <ul class="linkse">
                    <li class="links">售后服务</li>
                    <li><a href="http://hd.beeasy.com.cn/act/6-478-2232-guarantee.html?from=footer" target="_blank" rel="nofollow">正品承诺</a></li>
                    <li><a href="http://www.beeasy.com.cn/help/faq?from=footer" target="_blank" rel="nofollow">售后咨询</a></li>
                    <li><a href="http://www.beeasy.com.cn/help/refund_policies" target="_blank" rel="nofollow">退货政策</a></li>
                    <li><a href="http://www.beeasy.com.cn/help/refund_handle" target="_blank" rel="nofollow">退货办理</a></li>
                </ul>
                <div class="links_er_box">
                    <ul class="linksf">
                        <li class="links">手机聚美</li>
                        <li><span class="link_bottom_pic"></span></li>
                        <li>下载移动客户端</li>
                    </ul>
                    <ul class="linksg">
                        <li class="links">聚美微信</li>
                        <li><span class="link_bottom_pic"></span></li>
                        <li>聚美官方微信</li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="footer_dy" id="footer_dy">
            <div class="play_box"><span class="play"></span></div>
        </div>
        <div class="footer_center" >
            <div class="footer_con" id="footer_link">
                <a href="http://www.beeasy.com.cn/about/about_us?from=footer" target="_blank" rel="nofollow">关于聚美优品</a>
                <a href="http://jumei.investorroom.com?from=footer" target="_blank" rel="nofollow">INVESTOR RELATIONS</a>
                <a href="http://hd.beeasy.com.cn/act/9-478-2448-pop_invite_business_page.html?site={$current_site}&from=footer" target="_blank" rel="nofollow">商家入驻</a>
                <a href="http://www.beeasy.com.cn/help/get_update?from=footer" target="_blank" rel="nofollow">获取更新</a>
                <a href="http://jumei.ihrscloud.com/outterSupport/jumei?from=footer" target="_blank" rel="nofollow">加入聚美</a>
                <a href="http://www.beeasy.com.cn/i/market/cooperation?from=footer" target="_blank" rel="nofollow">品牌合作专区</a>
                <a href="http://cps.beeasy.com.cn?from=footer" target="_blank" rel="nofollow">网站联盟</a>
                <a href="http://www.beeasy.com.cn/about/news_center?from=footer" target="_blank" rel="nofollow">媒体报道</a>
                <a href="http://www.beeasy.com.cn/about/business?from=footer" target="_blank" rel="nofollow">商务合作</a>
            </div>
        </div>
        <div id="footer_copyright" class="footer_copyright">
            <div class="footer_con">
                <p class="footer_copy_con">
                    COPYRIGHT &copy; 2010-2015 北京创锐文化传媒有限公司 beeasy.com.cn 保留一切权利。
                    客服热线：400-123-8888
                    <br/>
                    京公网安备 11010102001226 | <a href="http://www.miibeian.gov.cn" target="_blank" rel="nofollow">京ICP证111033号</a> | 食品流通许可证 SP1101051110165515（1-1）
                    | <a href="http://p2.jmstatic.com/activity/2013_chuangrui.jpeg" target="_blank" rel="nofollow">营业执照</a>
                </p>
                <p>
                    <a href="javascript:void(0)" class="footer_copy_logo logo01" rel="nofollow"></a>
                    <a href="https://www.itrust.org.cn/yz/pjwx.asp?wm=1693268180" target="_blank" class="footer_copy_logo logo02" rel="nofollow"></a>
                    <a href="javascript:void(0)" class="footer_copy_logo logo03" rel="nofollow"></a>
                    <a href="javascript:void(0)" class="footer_copy_logo logo04" rel="nofollow"></a>
                     <a href="https://ss.knet.cn/verifyseal.dll?sn=e12070911010031011307708&ct=df&pa=453163" target="_blank" class="footer_copy_logo logo05" rel="nofollow"></a>
                </p>
                <script>function change_urlknet(eleId){var str= document.getElementById(eleId).href;var str1 =str.substring(0,(str.length-6));str1+=RndNum(6);document.getElementById(eleId).href=str1;}function RndNum(k){var rnd="";for (var i=0;i<k;i++){rnd+=Math.floor(Math.random()*10);}return rnd;}</script>
            </div>
        </div>
    </textarea>
</div>
</div> -->

<!-- <script src="Scripts/lib.js" ></script>
<script src="Scripts/monitor.js"></script>
<script src="Scripts/ui.js"></script>
<script src="Scripts/app.js"></script> -->








<!-- 子系统的页脚脚本 start -->
<!-- <script src="Scripts/main.js"></script>
<script src="Scripts/arrive.js" language="JavaScript"></script> -->
<!-- 子系统的页脚脚本 end -->
<!-- 公共JS start -->
<!-- 第三方脚本 -->
